package xcu.lxj.wxlogin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import xcu.lxj.wxlogin.config.WxLoginProperties;

/**
 * @Author XinJian Lei
 * @Date 2024/11/23 19:34
 * @Version 1.0
 */


@EnableConfigurationProperties({WxLoginProperties.class})
@SpringBootApplication
public class WxLoginMain {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(WxLoginMain.class, args);
        System.out.println("http://localhost:"+run.getEnvironment().getProperty("server.port")+"/wxLogin");
    }
}
